<template>
  <el-container>
    <el-header>Header</el-header>
    <el-container>
      <el-aside width="180px">
        <el-menu
          default-active="1"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <el-menu-item index="1">
            <i class="el-icon-menu"></i>
            <router-link tag="span" to="/home/student">学生管理</router-link>
          </el-menu-item>
          <el-menu-item index="2">
            <i class="el-icon-menu"></i>
            <router-link tag="span" to="/home/teacher">教师管理</router-link>
          </el-menu-item>
        </el-menu>
      </el-aside>
      <el-main>
          <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>
<style scoped>
.el-container,.el-menu {
  height: 100%;
}
.el-header {
  height: 40px;
  background: red;
}
</style>
